function validateForm() {
    if (document.user_s.brokerid.value.length > 8) {
        alert("请填写正确的BrokerId！");
        document.user_s.brokerid.focus();
        return false;
    } else if (document.user_s.userid.value.length > 8) {
        alert("请填写正确的UserId！");
        document.user_s.userid.focus();
        return false;
    } else if (document.user_s.paaswordtrader.value.length > 20) {
        alert("请填写正确的密码！");
        document.user_s.paaswordtrader.focus();
        return false;
    } else if (document.user_s.mobile.value.length > 11) {
        alert("请填写正确的联系电话!");
        document.user_s.mobile.focus();
        return false;
    }
    return true;
};


function keyLogin() {
    if (event.keyCode == 13)  //回车键的键值为13
        document.getElementByIdx_x("input").click(); //调用登录按钮的登录事件
};


var isShow = true;

function change() {
    var v = document.getElementById("pass");
    if (isShow) {
        v.type = "text";
        isShow = false;
    } else {
        v.type = "password";
        isShow = true;
    }
};
